package com.ikingtech.platform.service.system.user.service;

import com.ikingtech.framework.sdk.post.api.PostUserApi;
import com.ikingtech.platform.service.system.user.service.repository.UserPostRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author tie yan
 */
@Service
@RequiredArgsConstructor
public class PostUserService implements PostUserApi {

    private final UserPostRepository userPostService;

    @Override
    public void removeUserPost(String postId) {
        this.userPostService.removeByPostId(postId);
    }
}
